

$(function(){
    
    // time picker
    $('#time').timepicker({
        defaultTime: 'current',
        minuteStep: 1
    });
    
    // date picker
    $("#date").datepicker({
        autoclose: true
    });
    
    // datetime picker
    $("#datetimepicker").datetimepicker();
    
    // datetime picker
    $('#date-time').daterangepicker({
        singleDatePicker: true,
        timePicker: true,
        timePickerIncrement: 1,
        timePicker12Hour: true,
        format: 'MM/DD/YYYY hh:mm A'
    });
    
    // daterange picker
    $("#date-range").daterangepicker({
    });
    
    // date and time range picker
    $("#date-time-range").daterangepicker({
        timePicker: true,
        timePickerIncrement: 1,
        format: 'MM/DD/YYYY hh:mm A'
    });
    
    // color picker
    $('#color').colorpicker();
    
    // switch
    $('#switch').bootstrapSwitch();
    
    // no-icon spinner
    $('#no-icon-spinner').btSpinner({
        step: 1,
        orientation: 'vertical',
        position: 'right'
    });
    
    // my spinner
    $('#my-spinner').btSpinner();

//    $('.spinner').btSpinner({
//        value: 21
//    });
    
    // spinner
//    $('#jquery-spinner').btSpinner();

    $('#spinner').TouchSpin({
        verticalbuttons: true
    });
    
    $('#spinner1').TouchSpin({
        verticalbuttons: true
    });
    
    // tags input
    $('#tags-input').tagsinput({
        
    });
    
    // chosen
    
    $('#country').chosen();
    $('#country2').chosen();
    $('#country-image').chosen({
        width:"100%"
    });
    
    $('#country-image1').chosen({
        width:"100%"
    });
    
    // wysiwyg - cleditor
    $('#cleditor').cleditor();
    
    // wysiwyg - ckeditor
    CKEDITOR.replace(
        'wysiwyg',
        {
            toolbarGroups: [
                {name: 'clipboard'},
                {name: 'editing'},
                {name: 'basicstyles'},
                {name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi']},
                {name: 'styles'},
                {name: 'tools'}
            ]
        }
    );

});